/**
 * Created by Administrator on 2017/2/12.
 */
import { NgModule }             from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { SeComponent }     from './secondmain.component';
import { ChecknoComponent }        from './checkno/checkno';
import { CheckfailComponent }      from './checkfail/checkfail';
import { ChsuccessComponent }      from './chsuccess/chsuccess';
import { UploadComponent }      from './upload/upload';
import { UserlistComponent }      from './userlist/userlist';
import { FactComponent }      from './facedit/facedit';


const Secondroutes: Routes = [
  {
    path: '',
    component: SeComponent,
    children: [
      {path: '', redirectTo: '/checkno', pathMatch: 'full'},
      {path: 'checkno',       component: ChecknoComponent},
      {path: 'checkfa',     component: CheckfailComponent},
      {path: 'chsuccess',     component: ChsuccessComponent},
      {path: 'upD',     component: UploadComponent},
      {path: 'userlist',     component: UserlistComponent},
      {path: 'facdit/:id',     component: FactComponent},

    ]
  }
];

@NgModule({
  imports: [ RouterModule.forChild(Secondroutes) ],
  exports: [ RouterModule ]
})
export class SecondmainRoutingModule {}
